package com.example.tablefield.entites;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;

import java.util.List;

@Data
@TableName(value = "user_detail", autoResultMap = true)
public class UserDetail {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private UserWork userWork;
    private List<String> addr;
    @TableField(typeHandler = JacksonTypeHandler.class)
    private UserFeature userFeature;
    @TableField(typeHandler = JacksonTypeHandler.class)
    private UserBehavior userBehavior;
    @TableField(typeHandler = JacksonTypeHandler.class)
    private OtherInfo otherInfo;

    /**
     * 触发器配置（含 job_id、cron 表达式等）
     */
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<TriggerConfig> triggerConfig;
}
